home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / maquiagem-lana.swf / scripts / frame_5 / DoAction.as
Text File  |  2007-11-28  |  2KB  |  59 lines

  1. stop();
  2. so3.start(0,1);
  3. if(current_pencil_my_alpha == 100 && current_eyelash_curler > 1 && current_eye_shadow1 > 1 && current_eye_shadow2 > 1 && current_lip_gloss > 1 && current_blusher > 1)
  4. {
  5.    ending_score.gotoAndStop(1);
  6. }
  7. else if((current_lip_stick > 1 || current_lip_gloss > 1) && current_eyelash_curler > 1)
  8. {
  9.    ending_score.gotoAndStop(2);
  10. }
  11. else if((current_lip_stick > 1 || current_lip_gloss > 1) && current_blusher > 1)
  12. {
  13.    ending_score.gotoAndStop(3);
  14. }
  15. else
  16. {
  17.    ending_score.gotoAndStop(4);
  18. }
  19. ava_face.face_foundation._alpha = current_foundation_my_alpha;
  20. ava_face.face_eyebrow._alpha = current_pencil_my_alpha;
  21. ava_face.face_eye_shadow1._alpha = current_eye_shadow1_my_alpha;
  22. ava_face.face_eye_shadow2._alpha = current_eye_shadow2_my_alpha;
  23. ava_face.face_cheek._alpha = current_blusher_my_alpha;
  24. ava_face.face_lip._alpha = current_lip_stick_my_alpha;
  25. ava_face.face_lip_gloss._alpha = current_lip_gloss_my_alpha;
  26. current_foundation = ava_face.face_foundation.gotoAndStop(current_foundation);
  27. ava_face.face_eyebrow.gotoAndStop(current_pencil);
  28. ava_face.face_eye_shadow1.gotoAndStop(current_eye_shadow1);
  29. ava_face.face_eye_shadow2.gotoAndStop(current_eye_shadow2);
  30. ava_face.face_cheek.gotoAndStop(current_blusher);
  31. ava_face.face_lip.gotoAndStop(current_lip_stick);
  32. ava_face.face_lip_gloss.gotoAndStop(current_lip_gloss);
  33. ava_face.face_eyelashes.gotoAndStop(current_mascara);
  34. ava_face.face_curled_eyelashes.gotoAndStop(current_eyelash_curler);
  35. replay_bt.onRollOver = function()
  36. {
  37.    so1.start(0,1);
  38.    this.replay_bt_rollover.gotoAndStop(2);
  39. };
  40. replay_bt.onRollOut = function()
  41. {
  42.    this.replay_bt_rollover.gotoAndStop(1);
  43. };
  44. replay_bt.onPress = function()
  45. {
  46.    this.gotoAndStop(2);
  47. };
  48. replay_bt.onRelease = function()
  49. {
  50.    so1.start(0,1);
  51.    this.gotoAndStop(1);
  52.    _root.gotoAndStop(2);
  53. };
  54. replay_bt.onReleaseOutside = function()
  55. {
  56.    this.gotoAndStop(1);
  57. };
  58. delete onMouseDown;
  59.